Rmarkdown: radix

Sébastien Renaut

Different outputs

html document


---    
title: "rmarkdown_pdf"    
author: "Sébastien Renaut"    
date: '2018-09-06'    
output: 
  html_document: 
    toc: yes 
    theme: cerulean 
--- 

Microsoft Word


---  
title: "rmarkdown_docx"  
author: "Sébastien Renaut"  
date: '2018-09-06'  
output: 
  word_document: 
    toc: yes
---   

Portable Document Format (.pdf)


---    
title: "rmarkdown_pdf"    
author: "Sébastien Renaut"    
date: '2018-09-06'    
output: 
  pdf_document:
    keep_tex: true
    toc: yes  
---    

Exercice 1


install.packages("tinytex")  
library(tinytex)  
install_tinytex()  

LaTeX template


--- 
output:  
  pdf_document:  
   keep_tex: true  
   fig_caption: true  
   latex_engine: pdflatex  
   template: ../reference_material/svm-latex-ms.tex        
title: "**This is my first Rmarkdown manuscript**  
#many more options can go here which will be using by pdflatex.
---   

Exercice 2


 

 

Other possibilities

Presentations


---
title: "Untitled"
author: "Sebastien Renaut"
date: "27/02/2019"
output: ioslides_presentation
---

Overleaf

Bookdown

Radix


install.packages("radix")  
install.packages("leaflet")  

---  
title: "Rmarkdown: radix"  
author: "Sébastien Renaut"  
output: radix::radix_article  
---  

#Note that you may need to set eval = F for some formats (pdf, docx) to compile properly

```{r radix_example, echo = F, eval = T, layout='l-screen-inset'}  
library(leaflet)  
leaflet() %>%  
addTiles() %>%   
addMarkers(lng=174.768, lat=-36.852,popup="The birthplace of R")  
```    

Exercice 3